Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plasma-icons: Replace stroke value to "currentColor" #1226

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

Yakutoc
Copy link
Collaborator

@Yakutoc Yakutoc commented Jun 3, 2024

Stroke

  • заменили значение свойства stroke на currentColor

Before

Screenshot 2024-06-03 at 18 35 35

After

Screenshot 2024-06-03 at 18 33 57

What/why changed

Цвет для свойства stroke не наследовался, потому что значение были константой (захардкожены внутри самого svg). Теперь используем currentColor чтобы была возможность управлять цветом из вне.

codesandbox

https://codesandbox.io/p/sandbox/plasma-web-example-forked-6w8vvp?file=%2Fpackage.json%3A3%2C64

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

Copy link
Contributor

github-actions bot commented Jun 3, 2024

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1226/

@Yakutoc Yakutoc marked this pull request as ready for review June 3, 2024 11:51
@Yakutoc Yakutoc removed the request for review from Yeti-or June 3, 2024 11:51
@Yeti-or Yeti-or removed the request for review from shuga2704 June 4, 2024 06:59
@Yakutoc Yakutoc added this pull request to the merge queue Jun 4, 2024
@Yakutoc Yakutoc removed the request for review from TitanKuzmich June 4, 2024 07:20
Merged via the queue into dev with commit 76c4fe4 Jun 4, 2024
29 checks passed
@Yakutoc Yakutoc deleted the icons-fill-stroke-property branch June 4, 2024 07:30
This was referenced Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants